\hypertarget{class_____q_qt_object_factory____}{}\section{\+\_\+\+\_\+\+Q\+Qt\+Object\+Factory\+\_\+\+\_\+$<$ Object\+Type $>$ Class Template Reference}
\label{class_____q_qt_object_factory____}\index{\+\_\+\+\_\+\+Q\+Qt\+Object\+Factory\+\_\+\+\_\+$<$ Object\+Type $>$@{\+\_\+\+\_\+\+Q\+Qt\+Object\+Factory\+\_\+\+\_\+$<$ Object\+Type $>$}}
\subsection*{Static Public Member Functions}
\begin{DoxyCompactItemize}
\item 
{\footnotesize template$<$typename dst\+\_\+type , typename src\+\_\+type $>$ }\\static dst\+\_\+type \mbox{\hyperlink{class_____q_qt_object_factory_____a25df0d6e1a24fd1a9c263768aad1e201}{pointer\+\_\+cast}} (src\+\_\+type src)
\item 
\mbox{\Hypertarget{class_____q_qt_object_factory_____a436336401d9a2da36b4b72f031cb421e}\label{class_____q_qt_object_factory_____a436336401d9a2da36b4b72f031cb421e}} 
{\footnotesize template$<$typename T $>$ }\\static void {\bfseries register\+Object} ()
\item 
static Object\+Type $\ast$ \mbox{\hyperlink{class_____q_qt_object_factory_____a03b47defef4d5bb4e167ecda34e041cc}{create\+Object}} (const Q\+Byte\+Array \&class\+Name, Object\+Type $\ast$parent=N\+U\+LL)
\begin{DoxyCompactList}\small\item\em create\+Object 根据对象类型（类名）生成类对象实例 \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Member Function Documentation}
\mbox{\Hypertarget{class_____q_qt_object_factory_____a03b47defef4d5bb4e167ecda34e041cc}\label{class_____q_qt_object_factory_____a03b47defef4d5bb4e167ecda34e041cc}} 
\index{\+\_\+\+\_\+\+Q\+Qt\+Object\+Factory\+\_\+\+\_\+@{\+\_\+\+\_\+\+Q\+Qt\+Object\+Factory\+\_\+\+\_\+}!create\+Object@{create\+Object}}
\index{create\+Object@{create\+Object}!\+\_\+\+\_\+\+Q\+Qt\+Object\+Factory\+\_\+\+\_\+@{\+\_\+\+\_\+\+Q\+Qt\+Object\+Factory\+\_\+\+\_\+}}
\subsubsection{\texorpdfstring{create\+Object()}{createObject()}}
{\footnotesize\ttfamily template$<$class Object\+Type $>$ \\
static Object\+Type$\ast$ \mbox{\hyperlink{class_____q_qt_object_factory____}{\+\_\+\+\_\+\+Q\+Qt\+Object\+Factory\+\_\+\+\_\+}}$<$ Object\+Type $>$\+::create\+Object (\begin{DoxyParamCaption}\item[{const Q\+Byte\+Array \&}]{class\+Name,  }\item[{Object\+Type $\ast$}]{parent = {\ttfamily NULL} }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [static]}}



create\+Object 根据对象类型（类名）生成类对象实例 


\begin{DoxyParams}{Parameters}
{\em class\+Name} & \\
\hline
{\em parent} & \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}

\end{DoxyReturn}
\mbox{\Hypertarget{class_____q_qt_object_factory_____a25df0d6e1a24fd1a9c263768aad1e201}\label{class_____q_qt_object_factory_____a25df0d6e1a24fd1a9c263768aad1e201}} 
\index{\+\_\+\+\_\+\+Q\+Qt\+Object\+Factory\+\_\+\+\_\+@{\+\_\+\+\_\+\+Q\+Qt\+Object\+Factory\+\_\+\+\_\+}!pointer\+\_\+cast@{pointer\+\_\+cast}}
\index{pointer\+\_\+cast@{pointer\+\_\+cast}!\+\_\+\+\_\+\+Q\+Qt\+Object\+Factory\+\_\+\+\_\+@{\+\_\+\+\_\+\+Q\+Qt\+Object\+Factory\+\_\+\+\_\+}}
\subsubsection{\texorpdfstring{pointer\+\_\+cast()}{pointer\_cast()}}
{\footnotesize\ttfamily template$<$class Object\+Type $>$ \\
template$<$typename dst\+\_\+type , typename src\+\_\+type $>$ \\
static dst\+\_\+type \mbox{\hyperlink{class_____q_qt_object_factory____}{\+\_\+\+\_\+\+Q\+Qt\+Object\+Factory\+\_\+\+\_\+}}$<$ Object\+Type $>$\+::pointer\+\_\+cast (\begin{DoxyParamCaption}\item[{src\+\_\+type}]{src }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [static]}}

方便函数 用于指针类型之间的随意互转，以void$\ast$为中转。 用于模板函数和模板函数实例之间进行转换，绝佳。 

The documentation for this class was generated from the following file\+:\begin{DoxyCompactItemize}
\item 
R\+:/\+Develop/a0-\/develop/\+Lib\+Q\+Qt/src/core/qqtobjectmanager.\+h\end{DoxyCompactItemize}
